package com.distribute.framework.core.lsf.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;



/**
 * 接入者
 * @author uiu
 */
public class AppInfo implements java.io.Serializable{
	
	private static final long serialVersionUID = 1l;

	String title;//服务标题
	String url;//服务地址
	String visitKey=UUID.randomUUID().toString();//访问口令
	Date startTime;//启动时间
	Set<String> interfaces = new HashSet();//接口列表
	
	
	/**
	 * @param appId
	 * @param appKey
	 * @param appTitle
	 * @param appUrl
	 * @param visitKey
	 * @param allows
	 * @param startTime
	 * @param interfaces
	 */
	public AppInfo(String title,String url,String visitKey,Date startTime, String... interfaces) {
		super();
		this.title = title;
		this.url = url;
		this.visitKey = visitKey;
		this.startTime = startTime;
		if(interfaces!=null){
			for(String item:interfaces)
				this.interfaces.add(item);
		}
	}
	public String getVisitKey() {
		return visitKey;
	}
	public void setVisitKey(String visitKey) {
		this.visitKey = visitKey;
	}
	public Set<String> getInterfaces() {
		return interfaces;
	}
	public void setInterfaces(Set<String> interfaces) {
		this.interfaces = interfaces;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	
}